<div class="span3 bs-docs-sidebar">
    <ul class="nav nav-list bs-docs-sidenav">
        <li><?php echo anchor('admin/keuntungan', '<i class="icon-chevron-right"></i>Keuntungan') ?></li>
        <li><?php echo anchor('admin/keuntunganGroup', '<i class="icon-chevron-right"></i>Keuntungan Group') ?></li>
    </ul>
</div>
<div class="span9">
    <section id="domain">
        <div class="page-header">
            <h1>Daftar Keuntungan Group</h1>
        </div>
        <div class="row-fluid">
            <div class="span12">
                <table class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th class="span1">#</th>
                            <th class="span1">Group</th>
                            <th class="span2">Harga Jual</th>
                            <th class="span2">Harga Beli</th>
                            <th class="span2">Keuntungan</th>
                            <th class="span2">Discount</th>
                            <th class="span2">Banyak</th>
                            <th class="span2">Jumlah</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $no = 1 ?>
                        <?php foreach ($keuntungan as $data) : ?>
                            <tr>
                                <td>
                                    <?php echo $no ?>
                                </td>
                                <td>
                                    <code><?php echo $data->data ?></code>
                                </td>
                                <td>Rp <?php echo $data->price ?></td>
                                <td>Rp <?php echo $data->beli ?></td>
                                <td>Rp <?php echo $data->keuntungan ?></td>
                                <td>Rp <?php echo $data->discont ?></td>
                                <td><?php echo $data->qty ?></td>
                                <td>Rp <?php echo $data->jumlah ?></td>
                            </tr>
                            <?php $no++ ?>
                        <?php endforeach; ?>
                        <tr>
                            <td colspan="7"><center><strong>Total</strong></center></td>
                    <td colspan="2"><strong>Rp <?php echo $total[0]->jumlah ?></strong></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </section>    
</div>